package com.navinfo.gateway.platform.server.configuration;


import com.navinfo.gateway.platform.server.netty.TcpServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * tcp服务端实例启动类
 *
 * @author zhengshibo
 * @date 2018-03-14
 */
@Component
public class NettyServerStartup  implements CommandLineRunner {

    @Autowired
    TcpServer tcpServer;

    @Override
    public void run(String... args) throws Exception {
        tcpServer.start();
    }

}
